cd $(dirname "$0" )
# mac
GOOS=darwin GOARCH=amd64 go build -o ./build/picture_format_converter_darwin_amd64 -buildmode=pie ./src/picture_format_converter.go 
GOOS=darwin GOARCH=arm64 go build -o ./build/picture_format_converter_darwin_arm64 -buildmode=pie ./src/picture_format_converter.go
# linux
GOOS=linux GOARCH=amd64 go build -o ./build/picture_format_converter_linux_amd64 -buildmode=pie ./src/picture_format_converter.go
GOOS=linux GOARCH=386 go build -o ./build/picture_format_converter_linux_i386 -buildmode=default ./src/picture_format_converter.go
GOOS=linux GOARCH=arm64 go build -o ./build/picture_format_converter_linux_arm64 -buildmode=pie ./src/picture_format_converter.go
GOOS=linux GOARCH=arm go build -o ./build/picture_format_converter_linux_arm -buildmode=default ./src/picture_format_converter.go
GOOS=linux GOARCH=mips64 go build -o ./build/picture_format_converter_linux_mips64 -buildmode=default ./src/picture_format_converter.go
GOOS=linux GOARCH=riscv64 go build -o ./build/picture_format_converter_linux_riscv64 -buildmode=default ./src/picture_format_converter.go
# windows
GOOS=windows GOARCH=amd64 go build -o ./build/picture_format_converter_windows_amd64.exe -buildmode=pie ./src/picture_format_converter.go
GOOS=windows GOARCH=386 go build -o ./build/picture_format_converter_windows_i386.exe -buildmode=pie ./src/picture_format_converter.go
GOOS=windows GOARCH=arm64 go build -o ./build/picture_format_converter_windows_arm64.exe -buildmode=pie ./src/picture_format_converter.go
GOOS=windows GOARCH=arm go build -o ./build/picture_format_converter_windows_arm.exe -buildmode=pie ./src/picture_format_converter.go
